package com.example.mahjong.ui.view;

import java.util.ArrayList;
import java.util.Map;

import com.example.mahjong.R;
import com.example.mahjong.model.card.CNCard;
import com.example.mahjong.model.card.CNCardName;
import com.example.mahjong.model.card.Card;
import com.example.mahjong.tool.project.cache.CNCardCache;
import com.example.mahjong.ui.screen.ScreenChange;
import com.example.mahjong.ui.widget.BottomMahjongLineView;

import android.content.Context;
import android.graphics.Canvas;
import android.graphics.drawable.Drawable;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.RelativeLayout;

public class GameView extends RelativeLayout {

	
	public GameView(Context context) {
		super(context);
		// TODO Auto-generated constructor stub
		ViewGroup.LayoutParams framelayout_params =
	            new ViewGroup.LayoutParams(ViewGroup.LayoutParams.FILL_PARENT,
	                                       ViewGroup.LayoutParams.FILL_PARENT);
		
		
		
		setLayoutParams(framelayout_params);
		
		BottomMahjongLineView bottomMahjongLineView = new BottomMahjongLineView(context);
		//bottomMahjongLineView.setX(ScreenChange.getAblPositionX(100));
		//bottomMahjongLineView.setY(ScreenChange.getAblPositionY(200));
		addView(bottomMahjongLineView);
	
//		Button button = new Button(context);
//		button.setBackgroundResource(R.drawable.btn_normal);
//		addView(button);
		
		ArrayList<Card> x = new ArrayList<Card>();
		x.add(new Card());
		bottomMahjongLineView.setMahjongsInfo(x);
		
	}

	

	
}
